<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="common/header.jsp"%>
<div class="clearfix"></div>
<div class="row">
	<div class="col-md-12">
		<div class="x_panel">
			<div class="x_title">
				<h2>
					商品管理 <i class="fa fa-user"></i><small>${rootSession.roleName}
						- 您可以通过搜索或者其他的筛选项对商品的信息进行查看、审核等管理操作。^_^</small>
				</h2>
				<div class="clearfix"></div>
			</div>
			<div class="x_content">
				<form method="post" action="${pageContext.request.contextPath }/root/selectinfo">
					<input type="hidden" name="pageIndex" value="1" />
			    <ul>
					<li>
						<div class="form-group">
							<label class="control-label col-md-3 col-sm-3 col-xs-12">商品名称</label>
							<div class="col-md-6 col-sm-6 col-xs-12">
								<input name="proName" type="text" class="form-control col-md-7 col-xs-12" value="">
							</div>
						</div>
					</li>
					
					<li>
						<%-- <div class="form-group">
							<label class="control-label col-md-3 col-sm-3 col-xs-12">APP状态</label>
							<div class="col-md-6 col-sm-6 col-xs-12">
								<select name="queryStatus" class="form-control">
									<c:if test="${statusList != null }">
									   <option value="">--请选择--</option>
									   <c:forEach var="dataDictionary" items="${statusList}">
									   		<option <c:if test="${dataDictionary.valueId == queryStatus }">selected="selected"</c:if>
									   		value="${dataDictionary.valueId}">${dataDictionary.valueName}</option>
									   </c:forEach>
									</c:if>
        						</select>
							</div>
						</div> --%>
					</li>
					<li>
						<%-- <div class="form-group">
							<label class="control-label col-md-3 col-sm-3 col-xs-12">商家</label>
							<div class="col-md-6 col-sm-6 col-xs-12">
								<select name="queryFlatformId" class="form-control">
									<c:if test="${flatFormList != null }">
									   <option value="">--请选择--</option>
									   <c:forEach var="dataDictionary" items="${flatFormList}">
									   		<option <c:if test="${dataDictionary.valueId == queryFlatformId }">selected="selected"</c:if>
									   		value="${dataDictionary.valueId}">${dataDictionary.valueName}</option>
									   </c:forEach>
									</c:if>
        						</select>
							</div>
						</div> --%>
					</li>
					<li>
						<div class="form-group">
							<label class="control-label col-md-3 col-sm-3 col-xs-12">景点</label>
							<div class="col-md-6 col-sm-6 col-xs-12">
								<select id="fieldName" name="fieldName" class="form-control">
									<c:if test="${fieldList != null }">
									   <option value="" selected="selected">--请选择--</option>
									   <c:forEach var="field" items="${fieldList}">
									   		<option value="${field.id}">
									   			${field.p_Name}
									   		</option>
									   </c:forEach>
									</c:if>
        						</select>
							</div>
						</div>
					</li>
					<li>
						<div class="form-group">
							<label class="control-label col-md-3 col-sm-3 col-xs-12">酒店</label>
							<div class="col-md-6 col-sm-6 col-xs-12">
        						<select name="hotelName" id="hotelName" class="form-control">
        							<c:if test="${hotelList != null }">
									   <option value="">--请选择--</option>
									   <c:forEach var="hotel" items="${hotelList}">
									   		<option value="${hotel.id}">${hotel.p_Name}</option>
									   </c:forEach>
									</c:if>
        						</select>
							</div>
						</div>
					</li>
					<li>
						<%-- <div class="form-group">
							<label class="control-label col-md-3 col-sm-3 col-xs-12">餐饮</label>
							<div class="col-md-6 col-sm-6 col-xs-12">
        						<select name="caterName" id="caterName" class="form-control">
        							<c:if test="${caterList != null }">
									   <option value="">--请选择--</option>
									   <c:forEach var="cater" items="${caterList}">
									   		<option value="${cater.id}">${cater.p_Name}</option>
									   </c:forEach>
									</c:if>
        						</select>
							</div>
						</div> --%>
					</li>
					<li><input type="submit" class="btn btn-primary"></li>
				</ul>
			</form>
		</div>
	</div>
</div>
<div class="col-md-12 col-sm-12 col-xs-12">
	<div class="x_panel">
		<div class="x_content">
			<p class="text-muted font-13 m-b-30"></p>
			<div id="datatable-responsive_wrapper"
				class="dataTables_wrapper form-inline dt-bootstrap no-footer">
				<div class="row">
					<div class="col-sm-12">
					
						<table id="datatable-responsive" class="table table-striped table-bordered dt-responsive nowrap dataTable no-footer dtr-inline collapsed"
							cellspacing="0" width="100%" role="grid" aria-describedby="datatable-responsive_info" style="width: 100%;">
							<thead>
								<tr role="row">
									<th class="sorting_asc" tabindex="0"
										aria-controls="datatable-responsive" rowspan="1" colspan="1"
										aria-label="First name: activate to sort column descending"
										aria-sort="ascending">商家名称</th>
									<th class="sorting" tabindex="0"
										aria-controls="datatable-responsive" rowspan="1" colspan="1"
										aria-label="Last name: activate to sort column ascending">
										商家账号</th>
									<th class="sorting" tabindex="0"
										aria-controls="datatable-responsive" rowspan="1" colspan="1"
										aria-label="Last name: activate to sort column ascending">
										商家电话</th>
									<th class="sorting" tabindex="0"
										aria-controls="datatable-responsive" rowspan="1" colspan="1"
										aria-label="Last name: activate to sort column ascending">
										创建日期</th>
									<th class="sorting" tabindex="0"
										aria-controls="datatable-responsive" rowspan="1" colspan="1"
										aria-label="Last name: activate to sort column ascending">
										更新日期</th>
									<th class="sorting" tabindex="0"
										aria-controls="datatable-responsive" rowspan="1" colspan="1"
										style="width: 124px;"
										aria-label="Last name: activate to sort column ascending">
										操作</th>
								</tr>
							</thead>
							<tbody>
								<c:forEach var="list" items="${list }" varStatus="status">
									<tr role="row" class="odd">
										<td tabindex="0" class="sorting_1">${list.proName}</td>
										<td>
											${list.proCode}
										</td>
										<td>${list.proPhone}</td>
										<td><fmt:formatDate value="${list.createDate}"/></td>
										<td>
											<fmt:formatDate value="${list.modifyDate}"/>
										</td>
										<td>
											 <a href="${pageContext.request.contextPath}/root/show?proName=${list.proCode}" class="btn btn-primary">查看</a>
										</td>
									</tr>
								</c:forEach>
							</tbody>
						</table>
					</div>
				</div>
				<div class="row">
					<div class="col-sm-5">
						<div class="dataTables_info" id="datatable-responsive_info"
							role="status" aria-live="polite">共${pages.totalCount }条记录
							${pages.currentPageNo }/${pages.totalPageCount }页</div>
					</div>
					<div class="col-sm-7">
						<div class="dataTables_paginate paging_simple_numbers"
							id="datatable-responsive_paginate">
							<ul class="pagination">
								<c:if test="${pages.currentPageNo > 1}">
									<li class="paginate_button previous"><a
										href="javascript:page_nav(document.forms[0],1);"
										aria-controls="datatable-responsive" data-dt-idx="0"
										tabindex="0">首页</a>
									</li>
									<li class="paginate_button "><a
										href="javascript:page_nav(document.forms[0],${pages.currentPageNo-1});"
										aria-controls="datatable-responsive" data-dt-idx="1"
										tabindex="0">上一页</a>
									</li>
								</c:if>
								<c:if test="${pages.currentPageNo < pages.totalPageCount }">
									<li class="paginate_button "><a
										href="javascript:page_nav(document.forms[0],${pages.currentPageNo+1 });"
										aria-controls="datatable-responsive" data-dt-idx="1"
										tabindex="0">下一页</a>
									</li>
									<li class="paginate_button next"><a
										href="javascript:page_nav(document.forms[0],${pages.totalPageCount });"
										aria-controls="datatable-responsive" data-dt-idx="7"
										tabindex="0">最后一页</a>
									</li>
								</c:if>
							</ul>
						</div>
					</div>
				</div>
			</div>

		</div>
	</div>
</div>
</div>
<%@include file="common/footer.jsp"%>
<script src="${pageContext.request.contextPath }/statics/root.js/rollpage.js"></script>
<script src="${pageContext.request.contextPath }/statics/root.js/appinfolist.js"></script>